More on Loops

Published on: Wed Feb 17 2010

printf(“%d”, root*root); You can use an expression as a variable in a printf statement Do… while, is a post test loop. First it does it. Then it checks the condition. initialization do { body Update } while (condition test); Nested Loops - IF outer loops executes n times, and inner loop m times, inner loop executes n * m times.